<?php

namespace app\admin\validate;

use think\Validate;

class PurchaseValidate extends Validate
{
    protected $rule = [
        'create_time' => 'require',
        'supplier' => 'require',
        'warehouse' => 'require',
        'goods_id' => 'require',
        'set_account' => 'require',
        'enclosure' => 'require'
    ];

    protected $msg = [
        'create_time.require' => '请选择采购日期',
        'supplier.require' => '请选择供应商',
        'warehouse.require' => '请选择仓库',
        'goods_id.require' => '请选择商品',
        'set_account.require' => '请选择结算账户',
        'enclosure.require' => '请上传附件'
    ];
}
